import paddlehub as hub
import cv2

face_detector = hub.Module(name="pyramidbox_lite_mobile",version='1.2.0')
# 多张人脸测试用例
# test_img_path = "../origin/group_photo.jpeg"

# 模糊图片测试用例
# test_img_path = "../test_img/mohu.jpg"

# 正常图片测试用例
test_img_path = "../test_img/normal.jpg"
result = face_detector.face_detection(images=[cv2.imread(test_img_path)], visualization=True, output_dir="./")
# or
print(result)